import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
      path: '/',
      redirect: '/home/tag',
    },
    {
      path: '/home',
      component: ()=> import('../pages/index/index.vue'),
      children: [
        {
          path: 'tag',
          component: ()=> import('../pages/index/tagIndex.vue')
        },
        {
          path: 'data',
          component: ()=> import('../pages/index/dataIndex.vue')
        },
        {
          path: 'layout',
          component: ()=> import('../pages/index/layoutIndex.vue')
        }
      ]
    },
    {
      path: '/layout',
      component: ()=> import('../pages/layout/index.vue')
    },
    
  ]
  
  const router = new VueRouter({
    routes
  })
  
  export default router
  
